import { NgModule, Optional, SkipSelf } from '@angular/core';
import { SharedModule } from "../shared/shared.module";

@NgModule({
  imports: [
    SharedModule,
  ],
  declarations: []
})
export class CoreModule {
  constructor(@Optional() @SkipSelf() parent:CoreModule)
  {
    if(parent){
      throw new Error("核心模块已经加载, 不能重复加载!");
    }
  }
}
